package org.example.cloudphoto.manager.websocket.picture.strategy;

import org.example.cloudphoto.manager.websocket.picture.model.PictureEditRequestMessage;
import org.example.cloudphoto.model.User;
import org.springframework.web.socket.WebSocketSession;

public interface PictureEditMessageStrategy {

    /**
     * 处理图片编辑请求消息
     *
     * @param requestMessage 图片编辑请求消息
     * @param session        WebSocket会话
     * @param user           用户信息
     * @param pictureId      图片ID
     * @throws Exception 处理异常
     */
    void handle(PictureEditRequestMessage requestMessage, WebSocketSession session, User user, Long pictureId) throws Exception;

}
